package xyz.cerberu.cet.log.doamin;

import java.sql.Timestamp;

/**
 * @author β世界
 * Created on 17:56
 * @Description 日志的实体类
 */
public class Log {

    private int lid;
    private int level;
    private String operateor;
    private String type;
    private String message;
    private Timestamp date;

    public Log() {
    }

    public Log(int lid, int level, String operateor, String type, String message, Timestamp date) {
        this.lid = lid;
        this.level = level;
        this.operateor = operateor;
        this.type = type;
        this.message = message;
        this.date = date;
    }

    public void setLid(int lid) {
        this.lid = lid;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public void setOperateor(String operateor) {
        this.operateor = operateor;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public int getLid() {
        return lid;
    }

    public int getLevel() {
        return level;
    }

    public String getOperateor() {
        return operateor;
    }

    public String getType() {
        return type;
    }

    public String getMessage() {
        return message;
    }

    public Timestamp getDate() {
        return date;
    }

    @Override
    public String toString() {
        return "Log{" +
                "lid=" + lid +
                ", level=" + level +
                ", operateor=" + operateor +
                ", type='" + type + '\'' +
                ", message='" + message + '\'' +
                ", date=" + date +
                '}';
    }
}
